import request from "@/api/request";
import type { SunnyRunInfo } from "@/types/sunnyRunInfo/type";

//运行指定的项目
export function runProjectApi(projectId: number) {
  return request({
    url: "/run/" + projectId,
    method: "get",
  });
}
/**
 * 服务端指定客户端调用执行
 * @param data 客户端运行信息
 * @returns
 */
export function distributeRunApi(data: SunnyRunInfo) {
  return request({
    url: "/disRun/onClient",
    method: "post",
    data,
  });
}

/**
 * 获取客户端列表
 * @returns
 */
export function getClientsListApi() {
  return request({
    url: "/disRun/clients",
    method: "get",
  });
}
